#include "led.h"
#include "beep.h"
#include "systick.h"
#include "key.h"
static uint8_t key1=0;
int main(void)
        {
        	delay_init(168);
			beep_init();
			led_init();
			key_init();
            while(1)
            {
				if(key_get())
				{
					key1=~key1;
				}
				if(key1)
				{
					beep_open();
				}
				else
				{
					beep_off();
				}
            }
        }
		